<!--<?php
require_once template('header'); 
print <<<EOT
<!--右边开始-->
<div id="right">
	<table class="clst" align="center" cellpadding="0" cellspacing="1">
		<tr>
			<td class="tleft">图片广告</td>
			<td class="tright"><a href="admincp.php?module=$module&action=add" class="but1">添加广告</a></td>
		</tr>
	</table>
	<table cellpadding="0" cellspacing="1" class="list">
		<tr>
			<th width="7%">NO.</th>
			<th width="13%">广告名</th>
			<th width="30%">调用代码</th>
			<th width="14%">广告位置</th>
			<th width="13%">开始时间</th>
            <th width="13%">结束时间</th>
			<th width="10%">$lang[operation]</th>
		</tr>
<!--
EOT;
foreach ($ad_rt as $val){
print <<<EOT
-->
		<tr  id="r$val[uid]">
			<td>$val[uid]</td>
			<td class="td1"><a href="#" >$val[banner_subject]<span style="width:auto;"><script src="$js_url?per=ad&status=$val[banner_point]&num=1&w=$val[banner_width]&h=$val[banner_height]"></script></span></a></td>
			<td>
			<textarea  cols="40" rows="4" class="tip" name="run_$val[uid]" id="run_$val[uid]"><script src="$js_url?per=ad&status=$val[banner_point]&num=1&w=$val[banner_width]&h=$val[banner_height]"></script></textarea>
			</td>
			<td>$val[banner_point]</td>
			<td>$val[start_date]</td>
			<td>$val[end_date]</td>
			<td><a href="$val[edit]">$lang[laws]</a> | <a href="javascript:;" onclick="remove('$val[uid]','$val[del]');">$lang[remove]</a></td>
		</tr>
<!--
EOT;
} print <<<EOT
-->	
	</table>
	<div id="page"><span>$page_list</span></div>
</div>
<!--
EOT;
?>-->